# -*- coding:utf-8 -*-
from __future__ import absolute_import
from django.shortcuts import render, render_to_response, redirect
from django.contrib.gis import forms
from django.template import RequestContext
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib.auth.decorators import login_required
from django.contrib.auth import authenticate, login, logout
from django.views.decorators.csrf import csrf_exempt, csrf_protect
import littler.map_data.wrf_data_format as wdf
import littler.map_data.littler_port as lp

@csrf_protect
def get_point_info(request, *args, **kwargs):
    return wdf.get_point_info(request, *args, **kwargs)


@csrf_protect
def get_point_data(request, uri, *args, **kwargs):
    return wdf.get_point_data(request, uri, *args, **kwargs)


@csrf_protect
def get_area_data(request, uri, *args, **kwargs):
    return wdf.get_area_data(request, uri, *args, **kwargs)


# 对外接口
@csrf_protect
def station_info(request, *args, **kwargs):
    return lp.get_station_info(request, *args, **kwargs)


@csrf_protect
def station_data(request, *args, **kwargs):
    return lp.get_station_data(request, *args, **kwargs)
